"""
面试题:
    操作滚动条:
    执行js

window.scrollTo(x,y)


"""
import time

from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
# 创建浏览器驱动对象
driver= webdriver.Edge()
#打开页面
driver.get("http://localhost:8081/regA.html")

driver.execute_script("window.scrollTo(0,100)")

time.sleep(10)


#关闭浏览器驱动对象
driver.quit()

